# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=imrsh
# NOTE: this software is not ready to be moved out of the testing repository
pkgver=0_git20210320
_commit=b97ad8e5b58061920f48d32f0343f66d5896a934
pkgrel=1
pkgdesc="Interactive POSIX shell"
url="https://git.sr.ht/~sircmpwn/imrsh"
license="GPL-3.0"
arch="all"
makedepends="meson mrsh-dev libtickit-dev"
subpackages="$pkgname-dbg"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/imrsh/archive/$_commit.tar.gz"
builddir="$srcdir/imrsh-$_commit"
options="!check" # no test suite

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
5a4a5dbb4c69d693cc3359cab8da89f758424f8cb8fca0a9b5c70becb889d4bfa20ae0ba09d3926a981a8a1c34d769432b80f30c30ac24e2a6182aedba8ab4da  imrsh-0_git20210320.tar.gz
"
